-- GENERATED SPELL FOR [Phantom Stagehand] --


function spell0_16472(pUnit, Event) --@Mallet Toss,n/a--
pUnit:FullCastSpellOnTarget(29677,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16472', 1000, 1)
end

function spell1_16472(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(41580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16472', 5330, 1)
end

function spell2_16472(pUnit, Event) --@Sandbag,n/a--
pUnit:FullCastSpellOnTarget(29673,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16472', 10293, 1)
end

function Sorts_16472(pUnit, Event)
local choix_sorts_16472 = math.random(0, 2)
if choix_sorts_16472 == 0 then
pUnit:RegisterEvent('spell0_16472', 1, 1)
end
if choix_sorts_16472 == 1 then
pUnit:RegisterEvent('spell1_16472', 1, 1)
end
if choix_sorts_16472 == 2 then
pUnit:RegisterEvent('spell2_16472', 1, 1)
end
end

function mob16472_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16472', math.random(1500, 3000), 1)
end

function mob16472_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16472_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16472_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16472, 1, 'mob16472_Action')
RegisterUnitEvent(16472, 2, 'mob16472_Leave')
RegisterUnitEvent(16472, 3, 'mob16472_Kill')
RegisterUnitEvent(16472, 4, 'mob16472_Die')
